@import 'global.less';

a,
b,
body,
button,
dd,
div,
dl,
dt,
em,
form,
h1,
h2,
h3,
h4,
h5,
h6,
html,
i,
iframe,
img,
input,
label,
li,
ol,
p,
select,
span,
strong,
textarea,
ul {
  padding: 0;
  margin: 0;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section,
summary {
  display: block;
}

html {
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: none;
  -webkit-overflow-scrolling: touch;
}

body {
  line-height: @font-size;
  font-family: @font-family;
  font-size: @font-size;
  color: @font-color;
  // background-color: @bg-color;
}

a {
  text-decoration: none;
  color: @font-color;
  cursor: pointer;
  outline: 0;
}

button,
input,
select,
textarea {
  outline: none;
  border-radius: 0;
}

button {
  border: 0;
}

ol,
ul {
  list-style: none;
}

em,
i {
  font-style: normal;
}

img {
  vertical-align: middle;
  border: 0;
}

iframe {
  border: 0;
}

.loading {
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  height: 100%;
  width: 100%;
  z-index: 999;
  opacity: 1;
  background-color: #fff;
  pointer-events: none;
  justify-content: center;
  align-items: center;

  .loading-spinner {
    width: 100px;
    height: 100px;
    border: 8px solid rgba(136, 177, 75, .25);
    border-top-color: rgba(220, 63, 63, .8);
    border-radius: 100%;
    animation: rotation .6s infinite linear;
  }
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: -1;

  .copyright {
    padding: 20px 10px;
    line-height: 18px;
    color: #80848f;
    text-align: center;
  }
}
@import 'modules/icon.less';
@import 'modules/animation.less';
@import 'modules/message.less';
@import 'modules/button.less';
@import 'modules/layer.less';

.el-input {
  position: relative;
  display: inline-block;
  width: 100%;
  font-size: @font-size;
}

.el-input {
  .icon {
    color: @gray-color;
  }
}

.el-input__inner {
  display: inline-block;
  height: 35px;
  line-height: 35px;
  width: 100%;
  padding: 0 6px;
  font-size: inherit;
  color: #5a5e66;
  background-color: #fff;
  background-image: none;
  border: 1px solid @border-color;
  border-radius: @radius;
  box-sizing: border-box;
  transition: border-color .2s cubic-bezier(.645,.045,.355,1);
  -webkit-appearance: none;

  &:focus {
    border-color: @base-color;
  }
}

.el-input__inner,
.el-textarea__inner {
  &::-webkit-input-placeholder {
    color: @gray-color;
  }

  &:-moz-placeholder {
    color: @gray-color;
  }

  &::-moz-placeholder {
    color: @gray-color;
  }

  &:-ms-input-placeholder {
    color: @gray-color;
  }
}

.el-input--prefix {
  .el-input__inner {
    padding-left: 30px;
  }
}

.el-input--suffix {
  .el-input__inner {
    padding-right: 30px;
  }
}

.el-input__prefix {
  position: absolute;
  top: 2px;
  left: 8px;
  height: 100%;
}

.el-input__suffix {
  position: absolute;
  top: 1px;
  right: 8px;
  height: 100%;
  text-align: center;
}

.el-input.is-disabled .el-input__inner,
.el-textarea.is-disabled .el-textarea__inner {
  color: #b4bccc;
  background-color: #f5f7fa;
  border-color: #dfe4ed;
  cursor: not-allowed;
}

.el-scrollbar:active > .el-scrollbar__bar,
.el-scrollbar:focus > .el-scrollbar__bar,
.el-scrollbar:hover > .el-scrollbar__bar {
  opacity: 1;
  -webkit-transition: opacity 340ms ease-out;
  transition: opacity 340ms ease-out;
}

.el-scrollbar__wrap {
  overflow: scroll;
  height: 100%;
}

.el-scrollbar__wrap--hidden-default::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.el-scrollbar__thumb {
  position: relative;
  display: block;
  width: 0;
  height: 0;
  cursor: pointer;
  border-radius: inherit;
  background-color: rgba(135,141,153,.3);
  -webkit-transition: .3s background-color;
  transition: .3s background-color;
}

.el-scrollbar__thumb:hover {
  background-color: rgba(135,141,153,.5);
}

.el-scrollbar__bar {
  position: absolute;
  right: 2px;
  bottom: 2px;
  z-index: 1;
  border-radius: 4px;
  opacity: 0;
  -webkit-transition: opacity 120ms ease-out;
  transition: opacity 120ms ease-out;
}

.el-scrollbar__bar.is-vertical {
  width: 6px;
  top: 2px;
}

.el-scrollbar__bar.is-vertical > div {
  width: 100%;
}

.el-scrollbar__bar.is-horizontal {
  height: 6px;
  left: 2px;
}

.el-scrollbar__bar.is-horizontal > div {
  height: 100%;
}

.flex-box {
  display: flex;

  .flex-item {
    word-break: break-all;
    word-wrap: break-word;
    flex: 1;
  }
}

.alert {
  display: flex;
  padding: 10px 15px;
  margin-bottom: 15px;
  font-size: 14px;
  border: 1px solid @alert-warning-border-color;
  background-color: @alert-warning-color;
  border-radius: @radius;

  &.alert-success {
    background-color: @alert-success-color;
    border-color: @alert-success-border-color;

    .icon {
      color: @success-color;
    }
  }

  &.alert-warning {
    background-color: @alert-warning-color;
    border-color: @alert-warning-border-color;

    .icon {
      color: @warning-color;
    }
  }

  &.alert-error {
    background-color: @alert-error-color;
    border-color: @alert-error-border-color;

    .icon {
      color: @error-color;
    }
  }

  .icon {
    margin-right: 10px;
    line-height: 20px;
    font-size: 20px;
    color: @warning-color;
  }

  p {
    line-height: 20px;
    flex: 1;
  }
}
